package ctn.sdk.youdao.config;

import ctn.sdk.youdao.until.ConfigUtil;

/**
 * Created by Zale on 4/2/14.
 */
public class YouDaoGlobalConfig {
    public static String API_KEY = getConfigValue("global.key","491659682");
    public static String KEY_FROM = getConfigValue("global.keyFrom","cuotoniu");
    public static String BASE_URL = getConfigValue("global.baseURL","http://fanyi.youdao.com/openapi.do");

    public static String getConfigValue(String key,String defaultValue){
        String obj = ConfigUtil.getValue(key);
        if(obj==null){
            return defaultValue;
        }else{
            return obj;
        }
    }

}
